package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.OperationUserCount;
import com.novax.ex.activity.infrastructure.entity.OperationUserLog;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author ChenXi
 * @Date 2023/04/18/14:39
 */

public interface OperationUserLogMapper extends BaseMapper {

    /**
     * @Description: 查询用户是否参与过次活动
     * @Author: ChenXi
     * @Date:  2023/4/18 14:44
     * @param userId 用户id
     * @param customId 自定义id
     * @return: java.lang.Integer
     **/
    Integer selectUserIdAndCustomId(@Param("userId") Long userId,@Param("customId") String customId);


    /**
     * 24小时内活动报名人数
     *
     * @return 活动报名详情
     */
    List<OperationUserCount> countUserId(@Param("operationIds") List<Long> operationIds);

}